package com.sanyang.lawyer.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.apache.ibatis.annotations.Case;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @program: lawyer
 * @description: 个人支出
 * @author: lql
 * @create: 2019-10-10 20:20
 **/
@Data
@TableName(value = "finance_payout")
public class Finance_payout {

    //个人支出id
    @TableId(value = "payoutId",type = IdType.INPUT)
    private int payoutId;
    //发生日期
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date inoutDate;
    //收支人
    @TableField(exist = false)
    private Hr_emp inoutPerson;
    //收支金额
    private Double inoutMoney;
    //案件id
    @TableField(exist = false)
    private Case_law caseId;
    //录入日期
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date enteringDate;
    //备注
    private String remark;
    //付款人
    private String payer;
    //支付方式
    @TableField(exist = false)
    private Finance_pay payId;
    //支出类型
    @TableField(exist = false)
    private Finance_payout_type payoutTypeId;
}
